# $Id: PKGBUILD 79981 2012-11-15 10:41:11Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>

pkgname=colordiff
pkgver=1.0.13
pkgrel=1
pkgdesc="A Perl script wrapper for 'diff' that produces the same output but with pretty 'syntax' highlighting"
arch=('any')
url="http://www.colordiff.org/"
license=('GPL')
depends=('perl' 'diffutils')
backup=('etc/colordiffrc' 'etc/colordiffrc-lightbg')
source=(http://www.colordiff.org/${pkgname}-${pkgver}.tar.gz{,.sig})
sha1sums=('64e369aed2230f3aa5f1510b231fcac270793c09'
          '0594fa0ad85635e09f774b32b1e3758097d26e85')

package() {       
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" INSTALL_DIR=/usr/bin MAN_DIR=/usr/share/man/man1 install
  install -m644 colordiffrc-lightbg "${pkgdir}/etc/colordiffrc-lightbg"
}
